'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    // 添加一个名为 "email_index" 的索引到 "Users" 表的 "email" 列
    await queryInterface.addIndex('edu_areas', ['pid'], {
      name: 'pid_index',
    });
  },

  async down(queryInterface, Sequelize) {
    // 删除名为 "email_index" 的索引
    await queryInterface.removeIndex('edu_areas', 'pid_index');
  },
};
